<include file="Public:header" /> <include file="Public:navgation" />
<div class="container-fluid main-content">
<div class="page-title chart-container"> </div>
<div class="row">
  <div class="col-md-12">
    <div class="widget-container member-min-hight">
      <div class="heading"> <i class="icon-bar-chart"></i>个人资料 <a class="btn btn-primary btn pull-right f-fill" data-toggle="modal" href="#myModal3">修改</a> </div>
      <div class="content">
        <div class="profile"> <img width="70" height="70" class="social-avatar pull-center open-modal" src="{$list['img_url']}"> <a class="user-name" >{$list['name']}</a>
          <p>个性签名</p>
        </div>
        <div class="favourites">
          <tr>
            <td><i class="icon-star"></i><a class="eye" href="#">22312</a></td>
          </tr>
          <div class="row">
            <div class="col-sm-12"> <span class="text-muted">公司名称：&nbsp;</span>{$list['sitename']} </div>
            <div class="col-sm-12"> <span class="text-muted">部门名称：&nbsp;</span>{$list['departname']} </div>
            <div class="col-sm-12"> <span class="text-muted">职位：&nbsp;</span>{$list['groupname']} </div>
            <div class="col-sm-12"> <span class="text-muted">入职日期：&nbsp;</span>{:date('Y-m-d',$list['reg_time'])} </div>
            <div class="col-sm-12"> <span class="text-muted">电话号码：&nbsp;</span><span data-name="tel">{$list['tel']}</span> </div>
            <div class="col-sm-12"> <span class="text-muted">QQ：&nbsp;</span><span data-name="QQ">{$list['QQ']}</span> </div>
            <div class="col-sm-12"> <span class="text-muted">E-mail：&nbsp;</span><span data-name="Email">{$list['Email']}</span> </div>
            <div class="col-sm-12"> <span class="text-muted">联系地址：&nbsp;</span><span data-name="address">{$list['address']}</span> </div>
            <div class="col-sm-12"> <span class="text-muted">固定规则：&nbsp;</span>
              <?php
                $ruleid=explode(',',$list['rule_id']);
                $str='';
                foreach($ruleid as $val){
                    foreach($rule as $va){
                        if($val==$va['id']){
                            $str.=$va['name'].',';
                        }
                    }
                }
                echo(trim($str,','));
              ?>
            </div>
          </div>
          <div class="facebook"> </div>
        </div>
      </div>
                    <!--modal start-->
                    <div class="modal fade" id="myModal3" style="display: none;" aria-hidden="true">
                        <div class="modal-dialog">
                            <div class="modal-content">
                                <form method="post" name="formupdate" class="form-horizontal" novalidate action="__URL__/update">
                                    <div class="modal-header">
                                        <button aria-hidden="true" class="close" data-dismiss="modal" type="button">×</button>
                                        <h4 class="modal-title">修改个人资料</h4>
                                    </div>
                                    <div class="modal-body">
                                        <fieldset>
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">密码：</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="password" type="password">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">电话号码：</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="tel" type="tel">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">QQ：</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="QQ" type="number">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">E-mail：</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="Email" type="email">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="control-label col-sm-2">联系地址：</label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" name="address" type="text">
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                    <div class="modal-footer">
                                        <button class="btn btn-primary" type="submit">修改</button>
                                        <button class="btn btn-default-outline" data-dismiss="modal" type="button">关闭</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <!--modal start-->
    </div>
  </div>
</div>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script> 
<include file="Public:footer" />